package personal.xjl._23java2studentdemo.spring;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Data
@Component("niumowang")
public class Cow {
    @Value("niumowang")
    String name;
    @Value("500")
    int weight;
}